/**  
* @Title: StockService.java  
* @Description: TODO(用一句话描述该文件做什么)  
* @author 张鑫
* @phone 17561783855  
* @date 2019年4月15日  
*/
package com.fortune.rainshineservice.service;

import com.fortune.rainshinecommon.base.MsgModel;
import com.fortune.rainshinecommon.base.ParmsModel;
import com.fortune.rainshinecommon.model.service.StockModel;
import com.fortune.rainshinecommon.model.service.StockRecordsModel;
import com.fortune.rainshinecommon.query.StockQuery;

import java.util.List;

/**  
* @ClassName: StockService  
* @Description: TODO(库存逻辑操作)  
* @author 张鑫
* @phone 17561783855
* @date 2019年4月15日  
*    
*/
public interface StockService {

	MsgModel addOrUpdate(StockModel stockModel);

	MsgModel getStockByShopId(String shopId);

	boolean warning(StockModel model);

	MsgModel purchase(StockModel model);

	List<StockRecordsModel> findDetailStocks(String id);

	MsgModel getStockList(ParmsModel parms);

	MsgModel stockRecordDetail(ParmsModel parms);

	MsgModel getStocksForShopSale(String shopId);

	MsgModel getStocksForShopUse(String shopId);

	MsgModel getSaleList(StockQuery query);

	MsgModel getConsumeList(StockQuery query);
}
